package com.sast.user_backend.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.sast.user_backend.model.User;
import com.sast.user_backend.model.UserEditRequest;
import com.sast.user_backend.model.UserRegisterRequest;
import com.sast.user_backend.model.UserVO;
import jakarta.servlet.http.HttpServletRequest;

/**
 * @author 86139
 * @description 针对表【user】的数据库操作Service
 * @createDate 2025-07-02 15:42:51
 */
public interface UserService extends IService<User> {
    public long register(UserRegisterRequest userRegisterRequest);

    public UserVO login(String name, String password, HttpServletRequest request);

    public long edit(UserEditRequest userEditRequest,HttpServletRequest request);

    public User getLoginUser(HttpServletRequest request);

    public boolean isAdmin(HttpServletRequest request);

    public boolean isAdmin(User user);

    public boolean logout(HttpServletRequest request);

    public boolean delete(String userName);
}
